package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;
import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/***********************************************************************
 * Module:  Location.java
 * Author:  御风林海
 * Purpose: Defines the Class Location
 ***********************************************************************/
public class LocationDto extends DtoEntity {


    public String firstPinyin;

    public int level;

    public String locationName;

    public String parentId;

    private Long cityId;

    private Long proviceId;

    private String cityName;

    private String proviceName;

    public int state = 0;

    public String getFirstPinyin() {
        return firstPinyin;
    }

    public void setFirstPinyin(String firstPinyin) {
        this.firstPinyin = firstPinyin;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getProviceId() {
        return proviceId;
    }

    public void setProviceId(Long proviceId) {
        this.proviceId = proviceId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getProviceName() {
        return proviceName;
    }

    public void setProviceName(String proviceName) {
        this.proviceName = proviceName;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "LocationDto{" +
                "firstPinyin='" + firstPinyin + '\'' +
                ", level=" + level +
                ", locationName='" + locationName + '\'' +
                ", parentId='" + parentId + '\'' +
                ", cityId=" + cityId +
                ", proviceId=" + proviceId +
                ", cityName='" + cityName + '\'' +
                ", proviceName='" + proviceName + '\'' +
                ", state=" + state +
                '}';
    }
}
